package net.sx.minemodule.mvp.model;

import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

import net.sx.minemodule.mvp.item.HistoryCommissionItem;

/**
 * 历史提成model 数据请求成功放入此类
 */
public class HistoryCommissionModel extends BaseModel<HistoryCommissionItem> {
    /**
     * historyTime : 2019-07-01~2019-07-31  //时间段
     * totalRoyalty : 510                   //每（月/日）提成
     */

    private String historyTime;
    private int totalRoyalty;

    public String getHistoryTime() {
        return historyTime;
    }

    public void setHistoryTime(String historyTime) {
        this.historyTime = historyTime;
    }

    public String getTotalRoyalty() {
        return String.valueOf(totalRoyalty);
    }

    public void setTotalRoyalty(int totalRoyalty) {
        this.totalRoyalty = totalRoyalty;
    }

    @Override
    public HistoryCommissionItem createItem(MultiTypeAdapter adapter) {
        return new HistoryCommissionItem(this);
    }
}
